﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Media.Media3D;
using Cjc.ChromiumBrowser;
using System.Windows.Media;
using System.Windows;

namespace Cjc.Chromium3D
{
	public class BrowserState
	{
		public Geometry3D Geometry { get; set; }
		public WebBrowser Browser { get; set; }

		public Viewport2DVisual3D CreateVisual( Material material )
		{
			return new Viewport2DVisual3D
			{
				Material = material,
				Geometry = this.Geometry,
				Visual = this.Browser,
			};
		}
	}
}